
def average(values):
    """Computes the arithmetic mean of a list of numbers.

    >>> print(average([20, 30, 70]))
    40.0
    :param values:
    :return:

    >>> print(average([20,80]))
    45.0
    :param values:
    :return:
    """

    return sum(values) / len(values)


import doctest
doctest.testmod()